<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/inc/common.jsp"%>
<html>
<head>
<title>申报管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="${basePath}/js/echarts/echarts.js" ></script>
<script type="text/javascript" src="${basePath}/js/echarts/theme/infographic.js" ></script>
<script type="text/javascript" src="${basePath}/js/echarts/theme/macarons.js" ></script>
<script type="text/javascript" src="${basePath}/js/echarts/theme/roma.js" ></script>
<script type="text/javascript" src="${basePath}/js/echarts/theme/shine.js" ></script>
</head>
<script type="text/javascript">
	$(function() {
		initCharts();
	});
	
	//回车查询
	$(document).keydown(function(e){
		if(e.keyCode == 13) {
			searchDate();
		}
	});
	
	function initCharts(){
		var myChart = echarts.init(document.getElementById('chart'),'roma');
        myChart.setOption({
        	title : {
                text: '出入境车辆人数统计'
            },
            tooltip : {
                trigger: 'axis'
            },
            legend: {
                data:['前场区','后场区']
            },
            toolbox: {
                show : true,
                feature : {
                    mark : {show: true},
                    dataView : {show: false, readOnly: false},
                    magicType : {show: true, type: ['line', 'bar']},
                    restore : {show: true},
                    saveAsImage : {show: true}
                }
            },
            calculable : true,
            xAxis : [
                {
                	name: '类型',
                    type : 'category',
                    data : ['出境俄籍','出境第三国','出境中籍','入境中籍','入境外籍']
                }
            ],
            yAxis : [
                {
                	name: '数量',
                    type : 'value',
                    splitArea : {show : true}
                }
            ],
            series : [
                {
                    name:'前场区',
                    type:'bar',
                    data:[197,87,45,174,212]
                },
                {
                    name:'后场区',
                    type:'bar',
                    data:[55,41,34,89,143]
                }
            ]
        });
	}
	
	
</script>
<body>
<div class="easyui-layout" fit="true">
		<div data-options="region:'north', title:'查询条件',split:true,collapsed:false,footer:'#searchfooter'" style="overflow: hidden;">
			<!-- 查询条件 -->
			<div style="padding:10px 5px 45px 20px;">
			<form id="searchForm" name="searchForm" style="margin-bottom: 0px;">
					<table class="search-table"  width="80%" cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td align="right" width="10%">开始时间:</td>
							<td width="28%">
								<input class="easyui-datebox" type="text" id="stateDate" name="stateDate"></input>
							</td>
							<td align="right" width="10%">结束时间:</td>
							<td width="28%">
								<input class="easyui-datebox" type="text" id="endDate" name="endDate"></input>
							</td>
						</tr>
					</table>
				</form>
			</div>
			<!-- 搜索按钮 -->
			<div id="searchfooter" style="text-align:right;padding: 0px 10px">
				<a href="javascript:void(0)" class="easyui-linkbutton" onclick="searchDate()"  data-options="iconCls:'icon-search',plain:true" >查询</a>
				<span class="search-btn-separator"></span>
				<a href="javascript:void(0)" class="easyui-linkbutton" onclick="cleanDate()" data-options="iconCls:'icon-cross',plain:true">重置</a>
			</div>
		</div>
		<div region="center" split="true" border="false" style="overflow: hidden;width: 99%;height: auto;padding-top: 10px;">
			<!-- 数据列表 -->
			<div id="chart" style="height:100%;width:100%;"></div>
		</div>
	</div>
</body>
</html>
